<?php if(!is_object($model)):?>
    <div class="control-group">    
        <div class="controls">
           <h2><?php echo Yii::t("msg", "0023");?></h2>
        </div>
    </div>
    <p>
        <?php echo Yii::t('msg', '0024', array());?>
    </p>
<?php else: ?>
<div class="form" style="text-align: left">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'resetpass-form',
    'enableClientValidation'=>true,
    'htmlOptions' => array(
        'class' => 'form-horizontal',
    )
)); ?>
    <div class="control-group">    
        <div class="controls">
           <h2><?php echo Yii::t("msg", "0023");?></h2>
        </div>
    </div>


    <div class="control-group">
        <?php echo $form->label($model,'password',array('class' => 'control-label')); ?>
        <div class="controls">
            <?php echo $form->passwordField($model,'password', array('class' => 'span3'));?>
            <?php echo $form->error($model,'password',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
        </div>
    </div>

    <div class="control-group">
        <?php echo $form->label($model,'re_password',array('class' => 'control-label')); ?>
        <div class="controls">
            <?php echo $form->passwordField($model,'re_password', array('class' => 'span3'));?>
            <?php echo $form->error($model,'re_password',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
        </div>
    </div>
    <?php if(CCaptcha::checkRequirements()): ?>
    <div class="control-group">
        <?php echo $form->labelEx($model,'verifyCode',array('class' => 'control-label')); ?>
        <div class="controls captcha">
        <?php $this->widget('CCaptcha'); ?><br>
        <?php echo $form->textField($model,'verifyCode'); ?>
        <?php echo $form->error($model,'verifyCode'); ?>
        </div>
    </div>
    <?php endif; ?>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary"><?php echo Yii::t("lbl", "0014");?></button>
        <button type="reset" class="btn" ><?php echo Yii::t("lbl", "0002");?></button>
    </div>
<?php $this->endWidget(); ?>
</div><!-- form -->

<?php endif; ?>